package com.hmsm.sys.po;

import java.util.List;

/**
 * OrgInfo entity. @author MyEclipse Persistence Tools
 */

public class OrgInfo implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3823964918249752569L;
	
	// Fields
	private Integer pkId;
	private Integer idType;
	private String name;
	private OrgType orgType;
	private Integer state;
	
	private DeptInfo rootDept;
	
	private List<OrgInfo> subOrgs;

	// Constructors

	/** default constructor */
	public OrgInfo() {
	}

	// Property accessors
	
	public OrgInfo(int id) {
		this.pkId = id;
	}

	/** full constructor */
	public OrgInfo(Integer idType, String name, Integer state) {
		this.idType = idType;
		this.name = name;
		this.state = state;
	}

	public Integer getPkId() {
		return this.pkId;
	}

	public void setPkId(Integer pkId) {
		this.pkId = pkId;
	}

	public Integer getIdType() {
		return this.idType;
	}

	public void setIdType(Integer idType) {
		this.idType = idType;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public OrgType getOrgType() {
		return orgType;
	}

	public void setOrgType(OrgType orgType) {
		this.orgType = orgType;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public DeptInfo getRootDept() {
		return rootDept;
	}

	public void setRootDept(DeptInfo rootDept) {
		this.rootDept = rootDept;
	}

	public List<OrgInfo> getSubOrgs() {
		return subOrgs;
	}

	public void setSubOrgs(List<OrgInfo> subOrgs) {
		this.subOrgs = subOrgs;
	}

}